// * 后台管理员接口模块
import http from '@/api'
import { UserAdmin } from '../interface'

// * 登录接口
export const loginApi = (data: UserAdmin.LoginParams) => {
	return http.post('/adminUser/login', data)
}

// * 获取用户信息接口
export const userInfoApi = () => http.get('/adminUser/profile')

// * 用户退出登录接口
export const logoutApi = () => http.delete('/logout')

// * 上传文件接口
export const uploadImg = data => http.post('/upload/file', data)
